.class Lmyview/RootScroller$1;
.super Ljava/lang/Object;
.source "RootScroller.java"

# interfaces
.implements Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lmyview/RootScroller;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lmyview/RootScroller;

.field private final synthetic val$context:Landroid/content/Context;


# direct methods
.method constructor <init>(Lmyview/RootScroller;Landroid/content/Context;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lmyview/RootScroller$1;->this$0:Lmyview/RootScroller;

    iput-object p2, p0, Lmyview/RootScroller$1;->val$context:Landroid/content/Context;

    .line 46
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onGlobalLayout()V
    .locals 7

    .prologue
    const/4 v6, 0x1

    const/4 v4, 0x0

    .line 51
    iget-object v3, p0, Lmyview/RootScroller$1;->this$0:Lmyview/RootScroller;

    # getter for: Lmyview/RootScroller;->isOne:Z
    invoke-static {v3}, Lmyview/RootScroller;->access$0(Lmyview/RootScroller;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 52
    iget-object v3, p0, Lmyview/RootScroller$1;->this$0:Lmyview/RootScroller;

    invoke-virtual {v3, v4}, Lmyview/RootScroller;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 53
    .local v1, "v":Landroid/view/ViewGroup;
    const/4 v3, 0x2

    invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    .line 55
    .local v2, "v1":Landroid/view/View;
    invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 54
    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    .line 56
    .local v0, "params":Landroid/widget/LinearLayout$LayoutParams;
    iget-object v3, p0, Lmyview/RootScroller$1;->this$0:Lmyview/RootScroller;

    # getter for: Lmyview/RootScroller;->screenHeight:I
    invoke-static {v3}, Lmyview/RootScroller;->access$1(Lmyview/RootScroller;)I

    move-result v3

    .line 57
    invoke-virtual {v1, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v4}, Landroid/view/View;->getHeight()I

    move-result v4

    sub-int/2addr v3, v4

    .line 58
    invoke-virtual {v1, v6}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v4}, Landroid/view/View;->getHeight()I

    move-result v4

    sub-int/2addr v3, v4

    .line 59
    iget-object v4, p0, Lmyview/RootScroller$1;->val$context:Landroid/content/Context;

    const/high16 v5, 0x42200000    # 40.0f

    invoke-static {v4, v5}, Lutil/DisplayUtil;->dip2px(Landroid/content/Context;F)I

    move-result v4

    add-int/2addr v3, v4

    .line 56
    iput v3, v0, Landroid/widget/LinearLayout$LayoutParams;->height:I

    .line 60
    invoke-virtual {v2, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 62
    iget-object v3, p0, Lmyview/RootScroller$1;->this$0:Lmyview/RootScroller;

    invoke-static {v3, v6}, Lmyview/RootScroller;->access$2(Lmyview/RootScroller;Z)V

    .line 65
    .end local v0    # "params":Landroid/widget/LinearLayout$LayoutParams;
    .end local v1    # "v":Landroid/view/ViewGroup;
    .end local v2    # "v1":Landroid/view/View;
    :cond_0
    return-void
.end method
